package com.cqx.collection.web.controller;


import com.cqx.collection.persistence.entity.Result;
import com.cqx.collection.service.ManufactureService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author chen.ping
 * @version 1.0
 */
@RestController
@RequestMapping("/manufacture")
public class ManufactureController {

    private static final Logger logger = LoggerFactory.getLogger(ManufactureController.class);

    @Autowired
    private ManufactureService manufactureService;

    @PostMapping("/getData")
    @ResponseBody
    public Result<Boolean> getData(){
        return manufactureService.pushData();
    }

    public static void main(String[] args) {
        System.out.println(System.getProperty("java.library.path"));
    }

}
